/*
 * WeatherPreferences
 *
 * Copyright 2008-2011 Centro Andaluz de Innovacion y Tecnologias de la
 * Informacion y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnologico de Andalucia 29590 - Campanillas, Malaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.weatherservice.umm;

public class WeatherPreferences {
	private Integer userId;
	private Integer value;
	private String location;
	private String country;
	private String date;

	/**
	 * Constructor
	 * 
	 * @param userId
	 * @param location
	 * @param country
	 */
	public WeatherPreferences(Integer userId, String location, String country) {
		this.userId = userId;
		this.location = location;
		this.country = country;
		this.value = null;
		this.date = null;

	}

	/**
	 * Constructor
	 * 
	 * @param userId
	 * @param location
	 * @param country
	 * @param date
	 */
	public WeatherPreferences(Integer userId, String location, String country,
			String date) {
		this.userId = userId;
		this.location = location;
		this.country = country;
		this.date = date;
		this.value = null;
	}

	/**
	 * Set date
	 * 
	 * @param date
	 *            preference date
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * Get date
	 * 
	 * @return preference date
	 */
	public String getDate() {
		return this.date;
	}

	/**
	 * Get user identifier
	 * 
	 * @return userId user id
	 */
	public Integer getUserId() {
		return this.userId;
	}

	/**
	 * Get location
	 * 
	 * @return location location name
	 */
	public String getLocation() {
		return this.location;
	}

	/**
	 * Get country
	 * 
	 * @return country country name
	 */
	public String getCountry() {
		return this.country;
	}

	/**
	 * Get value
	 * 
	 * @return value preference value
	 */
	public Integer getValue() {
		return this.value;
	}

	/**
	 * Set value
	 * 
	 * @param value
	 *            preference value
	 */
	public void setValue(Integer value) {
		this.value = value;
	}

	/**
	 * Return a string representation of the object
	 */
	public String toString() {
		return "UserId:" + this.userId + ", Location:" + this.location
				+ ", country:" + this.country + ", Value:" + this.value;
	}

}
